// webpack.config.js
var path = require('path')

var TransferWebpackPlugin = require('transfer-webpack-plugin');

module.exports = {
    entry: {
        app: path.resolve(__dirname, 'src/app.jsx')
    },
    resolve: {
        extensions: ["", ".js", ".jsx"]
    },
    output: {
        path: path.resolve(__dirname, 'build'),
        filename: '[name].js'
    },
    plugins: [
        new TransferWebpackPlugin([{
            from: 'www'
        }])
    ],
    module: {
        loaders: [{
            test: /\.jsx$/,
            loader: 'babel',
            query: {
                presets: ['react', 'es2015']
            }
        }, {
            test: /\.cjsx$/,
            loader: 'coffee!cjsx'
        }]
    }
}
